/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.kreig133.spine.simplemodel;

/**
 *
 * @author C.C.-fag
 */
public class SimpleEvent {

    double time;
    double shift;
    double duration;

    public SimpleEvent() {

    }

    /**
    * Проверитьне наступило ли событие.
    * @return 
    */
    public boolean  check(double time){
        
        return this.time < time;
    }

    public double getShift() {
        return shift;
    }

    public double getTimeLength() {
        return duration;
    }
    
    public boolean done(double currentTime){
        return currentTime > (time + duration);
    }

    public void setDuration(double duration) {
        this.duration = duration;
    }

    public void setShift(double shift) {
        this.shift = shift;
    }

    public void setTime(double time) {
        this.time = time;
    }
    
}
